package com.online.edu.course.service;

import com.online.edu.course.entity.ChapterPeriod;
import com.baomidou.mybatisplus.extension.service.IService;
import com.online.edu.course.entity.File;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 课时表 服务类
 * </p>
 *
 * @author world
 * @since 2021-07-30
 */
public interface IChapterPeriodService extends IService<ChapterPeriod> {

    //存储文件
    File saveFile(MultipartFile multipartFile);

    //新增文件时与课时列表绑定
    void addPeriodFileMapping(@Param("periodId") long periodId, @Param("fileId") long fileId);

    //新增课时表
    ChapterPeriod addChapterPeriod(@Param("chapterPeriod") ChapterPeriod chapterPeriod, @Param("chapterId") long chapterId);
}
